package com.seata.controller;

import com.seata.model.BuyDTO;
import com.seata.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TongRui乀
 * @Date: 2019-12-05 17:10
 * @description：
 */
@RestController
@RequestMapping("business")
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    @PostMapping("buy")
    public Integer buy(BuyDTO buyDTO){
        return this.businessService.buy(buyDTO);
    }

}
